import 'package:boss/ui/page/commodity/pickerCategories/picker_commodity_provider.dart';
import 'package:boss/ui/widget/button/rect_button.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

class CategoriesFooter extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return RectButton(
      title: '保存',
      onTap: () {
        var commodityProvider = Provider.of<PickerCommodityProvider>(context, listen: false);
        Navigator.pop(context, commodityProvider.selectedCommoditys);
      },
    );
  }
}
